﻿using StoryTeller.Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace StoryTeller.Domain
{
    public class User : BaseDomain
    {
        public User()
        {
            this.CreationDate = DateTime.Now;
            this.LastUpdate = DateTime.Now;
        }

        public DateTime LastLogin { get; set; }

        public string UserIdentity { get; set; }

        public string Name { get; set; }

        public string Provider { get; set; }

        public string ImageUrl { get; set; }

        public override bool Validate()
        {
            ValidationMessages = new List<string>();

            return ValidationMessages.Count > 0;
        }
    }
}
